from django.conf.urls.defaults import patterns, include, url
from django.conf import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
	('^' + settings.PREFIX_URL + r'$', 'movies.views.access'),
    ('^' + settings.PREFIX_URL + r'home/$', 'movies.views.home'),
	('^' + settings.PREFIX_URL + r'register/$', 'movies.views.register'),
	('^' + settings.PREFIX_URL + r'profiles/$', 'movies.views.view_profiles'),
	('^' + settings.PREFIX_URL + r'profiles/(?P<username>\w{0,30})/$', 'movies.views.view_profile'),
	('^' + settings.PREFIX_URL + r'login/$', 'movies.views.login'),
	('^' + settings.PREFIX_URL + r'logout/$', 'movies.views.logout'),
	('^' + settings.PREFIX_URL + r'movies/$', 'movies.views.view_movies'),
	('^' + settings.PREFIX_URL + r'movies/(?P<urltitle>[a-zA-Z0-9_~]{0,100})/$', 'movies.views.view_movie'),
	('^' + settings.PREFIX_URL + r'people/$', 'movies.views.view_people'),
	('^' + settings.PREFIX_URL + r'people/(?P<urlname>[a-zA-Z0-9_~]{0,100})/$', 'movies.views.view_person'),
	('^' + settings.PREFIX_URL + r'genres/$', 'movies.views.view_genres'),
	('^' + settings.PREFIX_URL + r'genres/(?P<description>\w{0,50})/$', 'movies.views.view_genre'),
	('^' + settings.PREFIX_URL + r'search/$', 'movies.views.search'),
	('^' + settings.PREFIX_URL + r'discovery/$', 'movies.views.discovery'),
	('^' + settings.PREFIX_URL + r'about/$', 'movies.views.about'),
	('^' + settings.PREFIX_URL + r'disclaimers/$', 'movies.views.disclaimers'),
)
